import request from "@/utils/request";

// 查询重点项目列表
export function listBizZhongdianProject(query) {
  return request({
    url: "/biz/bizZhongdianProject/list",
    method: "get",
    params: query,
  });
}

// 查询重点项目详细
export function getBizZhongdianProject(id) {
  return request({
    url: "/biz/bizZhongdianProject/" + id,
    method: "get",
  });
}

// 新增重点项目
export function addBizZhongdianProject(data) {
  return request({
    url: "/biz/bizZhongdianProject",
    method: "post",
    data: data,
  });
}

// 修改重点项目
export function updateBizZhongdianProject(data) {
  return request({
    url: "/biz/bizZhongdianProject",
    method: "put",
    data: data,
  });
}

// 删除重点项目
export function delBizZhongdianProject(id) {
  return request({
    url: "/biz/bizZhongdianProject/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizZhongdianProject/findMaxSort",
    method: "get",
  });
}
// 导出重点项目
export function exportBizZhongdianProject(query) {
  return request({
    url: "/biz/bizZhongdianProject/export",
    method: "get",
    params: query,
  });
}
